<?php
	
if(is_array($this->news) && count($this->news)>0){
	$info = array_shift($this->news);
	
	$tags_allow = "<br>";
	$info->description = trim(strip_tags($info->description, $tags_allow));
?>
						<div class="news-hot">
                            <p class="news-subject"><a href="http://blog.tamtay.vn/<?php echo $info->username;?>/blog/entry/<?php echo $info->nid;?>" class="title_entry" target="_blank"><?php print htmlspecialchars($info->title); ?></a></p>
                            <p class="news-time"><?php print date("H:i", $info->changed); ?> ngày <?php print date("d/m/Y", $info->changed); ?></p>
                            <p class="news-short">
                            	<?php echo truncate_utf8($info->description, 500, TRUE, TRUE); ?></p>                            
                        </div>
                        <div class="news-other">
                        	<ul>
	<?php
	if(is_array($this->news) && count($this->news)>0){
		for($i=0; $i<count($this->news); $i++){
			$newsObj = $this->news[$i];
		?>
								<li><a href="http://blog.tamtay.vn/<?php echo $newsObj->username;?>/blog/entry/<?php echo $newsObj->nid;?>" class="title_entry" target="_blank"><?php print htmlspecialchars($newsObj->title); ?></a></li>
		<?php
		}// End of for loop
	}// End of if
	?>
                            </ul>
                        </div>   
<?php
}	// End of if
?>